package cn.wolfcode.query;

import cn.wolfcode.range.FindRange;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TravelQuery extends QueryObject {
    private int state;
    private String destId;
    private int dayType = -1;//出行时间
    private int perExpendType = -1;//人均花费
    private int orderType = -1;
    public FindRange getDay(){
        return FindRange.DAY_MAP.get(dayType);
    }
    public FindRange getPerExpend(){
        return FindRange.EXPEND_MAP.get(perExpendType);
    }

}
